//
//  SearchPoiSearchQueryModel.h
//  o_amap
//
//  Created by Q神 on 2021/4/12.
//

#import <Foundation/Foundation.h>
/// 搜索
#import <AMapSearchKit/AMapSearchKit.h>
#import "LatLngModel.h"
#import "SearchBoundModel.h"


NS_ASSUME_NONNULL_BEGIN

@interface SearchPoiSearchQueryModel : NSObject

/// 查询字符串，多个关键字用“|”分割
@property (nonatomic, copy) NSString *query;

/// 待查询建筑物的标识
@property (nonatomic, copy) NSString *building;

/// 待查分类组合
@property (nonatomic, copy) NSString *category;

/// 待查城市（地区）的电话区号
@property (nonatomic, copy) NSString *city;

/// 设置查询的是第几页，从0开始
@property (nonatomic, assign) int pageNum;

/// 设置的查询页面的结果数目
@property (nonatomic, assign) int pageSize;

/// 是否严格按照设定城市搜索
@property (nonatomic, assign) BOOL cityLimit;

/// 是否按照父子关系展示POI
@property (nonatomic, assign) BOOL requireSubPois;

/// 是否按照距离排序
@property (nonatomic, assign) BOOL distanceSort;

/// 设置的经纬度
@property (nonatomic, strong) LatLngModel *location;

/// 搜索边界, 周边检索使用
@property (nonatomic, strong) SearchBoundModel *searchBound;

@property (nonatomic, assign) BOOL requireExtension;



+ (AMapPOIKeywordsSearchRequest *)initSearchKeywordsQuery:(NSString *)query;

+ (AMapPOIAroundSearchRequest *)initSearchAroundQuery:(NSString *)query;

+ (AMapPOIPolygonSearchRequest *)initSearchPoiPolygonQuery:(NSString *)query;

@end


NS_ASSUME_NONNULL_END
